package com.mycjj.android.activity;

import java.util.Date;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.util.Log;
import android.view.LayoutInflater;

import com.mycjj.android.ActivityManager;
import com.mycjj.android.MyCjjApplication;
import com.mycjj.android.ProjectDataManage;
import com.mycjj.android.http.ProjectHttpRequestInterface;
import com.mycjj.android.util.Preferences;
import com.mycjj.android.util.Utils;
import com.nostra13.universalimageloader.core.ImageLoader;

public class BaseActivity extends FragmentActivity {
	
	
	protected ProjectHttpRequestInterface request;
	protected ProjectDataManage dataManager = ProjectDataManage.getInstance();;
	protected LayoutInflater layoutInflater;
	protected ImageLoader imageLoader;
	protected MyCjjApplication mApp = MyCjjApplication.getInstance();
	protected ActivityManager mActManager = ActivityManager.getInstance();
	//key
	protected static final String ALL_KEY = "all";
	protected static final String YUYUE_KEY = "yuyue";
	protected static final String REGISTER_KEY = "register";
	protected static final int OK = 200;
	
	/** 从相机选择图片 */
	protected static final int PHOTO_TAKE_DATA = 0x10;
	/** 从媒体库选择图片 */
	protected static final int PHOTO_PICKED_WITH_DATA = 0x11;
	/** 剪切图片 */
	protected static final int PHOTO_CROP_DATA = 0x12;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		layoutInflater = (LayoutInflater)this.getSystemService(LAYOUT_INFLATER_SERVICE); 
		imageLoader = mApp.getImageLoader();
	}
	
	@Override
	protected void onActivityResult(int arg0, int arg1, Intent arg2) {
		super.onActivityResult(arg0, arg1, arg2);
	}
	
}
